package system

import (
	"github.com/gin-gonic/gin"
	"new_club_recruitment/api"
	"new_club_recruitment/middleware"
)

type RedEnvelope struct{}

func (r *RedEnvelope) InitRedEnvelopeRouter(Router *gin.RouterGroup) {
	systemApi := api.ApiGroupApp.SystemApiGroup.RedEnvelope
	Router.POST("grabARedEnvelope", systemApi.GrabARedEnvelope)
	sysRouter := Router.Group("system").Use(middleware.JWTAuthMiddleware(), middleware.CasbinHandler())
	{
		sysRouter.POST("redEnvelopes", systemApi.RedEnvelopes)
		sysRouter.POST("redPacketRcptSts", systemApi.RedPacketRcptSts)
	}
}
